package com.zzj.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

/**
 * <p>
 * 公告
 * </p>
 *
 * @author zzj
 * @since 2023-05-13
 */
@TableName("picc_notice")
public class Notice implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 标题
     */
    private String title;

    /**
     * 发布人用户名
     */
    private String creatorUsername;

    /**
     * 接收用户名
若无 则接收全部
     */
    private String receiveUsername;

    /**
     * 0 未读
1 已读
     */
    private Integer isRead;

    /**
     * 0 未发布
1 发布
     */
    private Integer status;

    /**
     * 内容
     */
    private String content;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private String createTime;

    /**
     * 修改时间
     */
       @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCreatorUsername() {
        return creatorUsername;
    }

    public void setCreatorUsername(String creatorUsername) {
        this.creatorUsername = creatorUsername;
    }

    public String getReceiveUsername() {
        return receiveUsername;
    }

    public void setReceiveUsername(String receiveUsername) {
        this.receiveUsername = receiveUsername;
    }

    public Integer getIsRead() {
        return isRead;
    }

    public void setIsRead(Integer isRead) {
        this.isRead = isRead;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Notice{" +
        "id = " + id +
        ", title = " + title +
        ", creatorUsername = " + creatorUsername +
        ", receiveUsername = " + receiveUsername +
        ", isRead = " + isRead +
        ", status = " + status +
        ", content = " + content +
        ", createTime = " + createTime +
        ", updateTime = " + updateTime +
        "}";
    }
}
